package com.tran.tr.order.controller;


import com.tran.tr.common.resp.ApiResp;
import com.tran.tr.order.FeignClient.UserFeign;
import com.tran.tr.user.feign.TrUserFeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 订单表 前端控制器
 * </p>
 *
 * @author ssh
 * @since 2021-01-07
 */
@RestController
@RequestMapping("/trorder")
public class TrOrderController {
    @Autowired
    private UserFeign userFeign;

    @GetMapping("/getById")
    public ApiResp getById(@RequestParam("id")String id){
        ApiResp apiResp = userFeign.get(id);
        return apiResp;
    }
}

